package br.com.jdobjs.core;

public class RuleSecurityConstraint {

	private boolean accessGranted = false;
	private boolean accessDenied = false;

	public boolean isAccessGranted() {
		return accessGranted;
	}

	public void deny() {
		accessGranted = false;
		accessDenied = true;
	}

	public void grant() {
		if (!accessDenied) {
			accessGranted = true;
		}
	}
}
